templateViewInit = ()=>{

    searchFormInfo();
    // 已知数据渲染
    var inst = table.render({
        elem: '#operate-list',
        id:'operate-list-id',
        height: '#content-body-200',
        url: top.tools.getBaseUrl()+'/logs/operate/getPage',
        method: 'post',
        headers:{
            'Access-Token':top.tools.cookie.token(),
            'Content-Type':'application/json',
        },
        toolbar: '#dictToolbar',
        defaultToolbar: ['filter', 'exports', 'print', { // 右上角工具图标
            title: '提示',
            layEvent: 'LAYTABLE_TIPS',
            icon: 'layui-icon-tips',
            onClick: function (obj) { // 2.9.12+
                layer.alert('自定义工具栏图标按钮');
            }
        }],
        cols: [
            [
                {type: 'checkbox', width: 50},
                {type: 'numbers', title: '序号', align: 'center', width: 80},
                {field: 'type', title: '模块类型', align: 'center', width: 150},
                {field: 'subType', title: '操作名称', align: 'left',width: 130},
                {field: 'action', title: '操作内容', align: 'left',width: 130,expandedMode:'tips' },
                {field: 'extra', title: '请求参数', align: 'center',width: 100,expandedMode:'tips'},
                {field: 'requestMethod', title: '请求方法', align: 'center',width: 150,expandedMode:'tips'},
                {field: 'requestUrl', title: '请求地址', align: 'center',width: 150,expandedMode:'tips'},
                {field: 'userIp', title: '请求IP', align: 'center',width: 120},
                {field: 'userAgent', title: '客户端', align: 'center',minWidth: 100,expandedMode:'tips'},
                {field: 'createTime', title: '创建时间', align: 'center',width: 160,templet:function (d){
                        return top.tools.form.formatDate(d.createTime);
                    }}
            ]
        ],
        parseData: dataToFormat,
        data:[
            {id:1,name:'用户性别',type:'system_user_sex',status:'0',remark:'',createTime:'2021-01-05 17:03:48'}
        ],
        //skin: 'line', // 表格风格
        //even: true,
        page: true, // 是否显示分页
        limits: [15, 20, 30,50],
        limit: 15, // 每页默认显示的数量
        done: function (res, curr, count) {
            $(".layui-table th[data-field=" + 0 + "] .layui-table-cell").html("");
        }
    });


    queryButton('operate-list-id');
    formReset();

}